﻿using System;
using System.Web.UI.WebControls;
using StarClub.BLL;
using StarClub.BLL.PageBase;

namespace StarClub.Web.Admin
{
    public partial class AdminList : MustLoginPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                BindAdmin();
        }
        void BindAdmin()
        {
            AdminManage adminList = new AdminManage();
            this.ListView1.DataSource=adminList.GetAdminlList();
            this.ListView1.DataBind();
        }

        protected void ListView1_ItemCommand(object sender, ListViewCommandEventArgs e)
        {
            string command = e.CommandName;
            if (command == "EiditRight")//编辑管理员
            {
                Response.Redirect("RightEdit.aspx?uid=" + e.CommandArgument);
            }
            else if (command == "DeleteAdmin")//删除管理员
            {
                
            }
        }
    }
}
